//
//  AppServerMacro.h
//  Eventor
//
//  Created by guojiang on 14-5-14.
//  Copyright (c) 2014年 DaCheng. All rights reserved.
//

#ifndef Eventor_AppServerMacro_h
#define Eventor_AppServerMacro_h
//#import "routerIPHelper.h"


#define UmengAppkey @"53290df956240b6b4a0084b3"


#define HTTP_IP                                 @"http://yeah.bgzh.net:8080"

//#define Local_IP                                 @"http://192.168.6.1"
#define Local_IP                                 [routerIPHelper routerIp]


#define URL_PATH(ip,url) [NSString stringWithFormat:@"%@/%@",ip,url]


// 1 -----登录与注册模块

/// 用户注册
#define User_Register_POST_URL URL_PATH(HTTP_IP,@"app/user?method=submitUser2")

/// 发送验证码
#define User_SendSMS_POST_URL URL_PATH(HTTP_IP,@"app/sms?method=sendSms")

/// 用户登录
#define User_Login_POST_URL URL_PATH(HTTP_IP,@"app/user?method=validateUser")

/// 修改密码
#define User_Modify_PSOT_URL URL_PATH(HTTP_IP,@"app/user?method=findpwd2")

/// 设置昵称
#define User_Setting_NickName_POST_URL URL_PATH(HTTP_IP,@"app/device?method=setNickName")

// 3------WIFI管理模块
/// 获取上下行速率数据
#define WIFI_UPLOAD_AND_DOWNLOAD_POST_URL URL_PATH(HTTP_IP,@"app/device?method=getRateFromStation")

/// 刷新数据
#define WIFI_REFRESH_DATA_POST_URL URL_PATH(HTTP_IP,@"app/device?method=switchDevice")

/// 设置WIFI信息
#define WIFI_SETTING_POST_URL URL_PATH(HTTP_IP,@"app/device?method=setWifInfo")

/// 设置WIFI开关信息
#define WIFI_SETTING_OPEN_POST_URL URL_PATH(HTTP_IP,@"app/device?method=setWifiStatus")

/// 设置WIFI健康模式
#define WIFI_SETTING_TIME_STATUS_POST_URL URL_PATH(HTTP_IP,@"app/device?method=setTimerStatus")

/// 设置猫的别名
#define WIFI_SETTING_ALIAS_POST_URL URL_PATH(HTTP_IP,@"app/device?method=setStationInfo")

/// 检测升级
#define WIFI_CHECK_UPDATE_POST_URL URL_PATH(HTTP_IP,@"app/version?method=upgradeCheck")

/// 母猫升级
#define WIFI_MOTHERCAT_UPDATE_POST_URL URL_PATH(HTTP_IP,@"app/version?method=upgradeVersion")

/// 子猫升级
#define WIFI_SONCAT_UPDATE_POST_URL URL_PATH(HTTP_IP,@"app/version?method=upgradeSlaveVersion")



/// 5 正在连接的设备
/// 正在连接的设备列表
#define Device_Connected_List_POST_URL URL_PATH(HTTP_IP,@"app/device?method=getConnectedDeviceList")

/// 拉黑设备
#define Device_AddToBlackListByMAC_POST_URL URL_PATH(HTTP_IP,@"app/device?method=addTOBlackListByMAC")

/// 设备黑名单
#define Device_BlackListByDeviceID_POST_URL URL_PATH(HTTP_IP,@"app/device?method=getBlackListByDeviceID")

/// 恢复设备
#define Device_DeleteFromBlackListByMac_POST_URL URL_PATH(HTTP_IP,@"app/device?method=deleteFromBlackListByMAC")


/// 6 ----------系统设置模块
/// 解除绑定接口
#define SYSTEM_SETTING_UNBIND_POST_URL URL_PATH(HTTP_IP,@"app/device?method=unbindUserAndDevice")

/// 重启设备
#define SYSTEM_SETTING_RESTART_DEVICE_POST_URL URL_PATH(HTTP_IP,@"app/device?method=restartDevice")


/// 8--------发现模块
/// 发现WIFI
#define DISCOVER_WIFI_POST_URL URL_PATH(Local_IP,@"goform/checkQwifi/")

/// 获取指定WIFI 绑定的设备
#define DISCOVER_WIFI_BIND_DEVICE_POST_URL URL_PATH(HTTP_IP,@"app/device?method=checkDeviceIsBind")


/// 设置PPPOE
#define DISCOVE_SETTING_PPPOE_POST_URL URL_PATH(Local_IP,@"goform/checkBroadBandConfig")


/// 设置静态IP
#define DISCOVE_SETTITNG_IP_POST_URL URL_PATH(Local_IP,@"goform/checkIPConfig")


/// 绑定用户和设备
#define DISCOVER_BIND_USER_AND_DEVICE_POST_URL URL_PATH(HTTP_IP,@"app/device?method=bindUserAndDevice")

#endif
